<template>

  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { getToken } from "./utils/auth";
export default {
  name: "App",
  created() {
    if (getToken() == "ok") {
      this.$post("/admin/admin_role/perm_list").then(data => {
        this.$store.dispatch("GenerateRoutes", data);
      });
    }
  }
};
</script>

<style>
</style>
